﻿using System.Collections.Generic;
using System.Web.Mvc;
using Smarly.Forum.Bussines.Model;
using Smarly.Web.Controllers;
using Smarly.Web.Controllers.Base;

namespace Smarly.Web.Areas.StapleForum.Controllers
{
	public class HomeController : BaseController
	{
		public ActionResult Index()
		{

			List<SectionModel> result = SectionModel.Get();
			return View(result);
		}

		public ActionResult Section(string section)
		{
			ThreadsModel model = new ThreadsModel(){HashTag = section.ToLower().Trim()}.Get();

			return View(model);
		}
	}
}
